FROM openjdk:8-jre-alpine
VOLUME /tmp
ADD ./target/cloud-eureka-service-1.0.1.RELEASE.jar app.jar
ENV JAVA_OPTS="-Xms256m -Xmx512m"
ENTRYPOINT ["sh", "-c", "java -server $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar"]